<style type ="text/css">
td {
	min-width:150px;
}
.wordwrap { 
   white-space: pre-wrap;      /* CSS3 */   
   white-space: -moz-pre-wrap; /* Firefox */    
   white-space: -pre-wrap;     /* Opera <7 */   
   white-space: -o-pre-wrap;   /* Opera 7 */    
   word-wrap: break-word;      /* IE */
   padding:10px;
   font-weight:13px;
}
</style>
<script src="<?php echo Yii::app()->getBaseUrl()?>/admin_assets/js/nicEdit.js" type="text/javascript"></script>
<script>
bkLib.onDomLoaded(function() { 
	nicEditors.allTextAreas({fullPanel : true, maxHeight : 240, width : 747});
		nicEditors.findEditor('<?php echo "description".$data->id?>').disable();
		jQuery('.nicEdit-main').attr('contenteditable','false');
		jQuery('.nicEdit-panel').hide();
		$("div.nicEdit-main").addClass('wordwrap');
});

</script>
<table border='0' width="70%" cellpadding="10">
<tr>
	<td><label><?php echo CHtml::encode($data->getAttributeLabel('title')); ?>:</label></td>
	<td><?php echo CHtml::encode($data->title); ?></td>
</tr>

<tr>
	<td><label><?php echo CHtml::encode($data->getAttributeLabel('slug')); ?>:</label></td>
	<td><?php echo CHtml::encode($data->slug); ?></td>
</tr>

<tr>
	<td><label><?php echo CHtml::encode($data->getAttributeLabel('meta_keywords')); ?>:</label></td>
	<td><?php echo CHtml::encode($data->meta_keywords); ?></td>
</tr>

<tr>
	<td><label><?php echo CHtml::encode($data->getAttributeLabel('meta_description')); ?>:</label></td>
	<td><?php echo CHtml::encode($data->meta_description); ?></td>
</tr>


<tr>
	<td><label><?php echo CHtml::encode($data->getAttributeLabel('content')); ?>:</label></td>
	<td><?php //echo CHtml::encode($data->description); ?>
	<textarea id="<?php echo "description".$data->id?>" readonly="readonly" style="width:747px; height:200px;">
	<?php echo CHtml::encode($data->content);?>
	</textarea></td>
</tr>

<tr>
	<td><label><?php echo CHtml::encode($data->getAttributeLabel('status')); ?>:</label></td>
	<td><?php echo CHtml::encode($data->status == 1 ? 'Active' : 'Inactive'); ?></td>
</tr>

<tr>
	<td><a class="uibutton" href="<?php echo Yii::app()->getBaseUrl()?>/admin/cms">Back to CMS</a></td>
</tr>
</table>
